package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 基础信息表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_code_type")
@ApiModel(value = "CgnciCodeTypeDO对象", description = "基础信息表")
public class CgnciCodeTypeDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id，自增")
    @TableId(value = "code_id", type = IdType.AUTO)
    private Long codeId;

    @ApiModelProperty("上级")
    private String codeHigherLevelCode;

    @ApiModelProperty("上级名称")
    private String codeHigherLevelName;

    @ApiModelProperty("编码")
    private String codeCode;

    @ApiModelProperty("名称")
    private String codeName;

    @ApiModelProperty(value = "是否启用（1-启用,0-不启用）")
    private String codeState;

    @ApiModelProperty("业务场景描述")
    private String codeRemark;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人名称")
    private String createUserName;

    @ApiModelProperty("修改时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("修改人名称")
    private String updateUserName;


}
